import { defHttp } from "@/utils/http";

// ERP 药品ATC用法含量ICD API
export const drugAtcUsageContentIcdApi = {
	// 获得药品ATC用法含量ICD分页
	drugAtcUsageContentIcdList: async (params: any) => {
		return await defHttp.get({ url: `/whs/drug-atc-usage-content-icd/page`, params });
	},
	// 新增药品ATC用法含量ICD
	drugAtcUsageContentIcdCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/drug-atc-usage-content-icd/create`, data });
	},

	// 修改药品ATC用法含量ICD
	drugAtcUsageContentIcdUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/drug-atc-usage-content-icd/update`, data });
	},

	// 删除药品ATC用法含量ICD
	drugAtcUsageContentIcdDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/drug-atc-usage-content-icd/delete?id=` + id });
	}
};
